<!-- 循环 -->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
  
</head>
<body>
    <!-- view 层 模板 -->
    <div id="app">
        <li v-for="(item, index) in items">
            {{item.message}} --- {{index}}
        </li>
    </div>

    <!-- 导入vue.js -->
    <script src="https://cdn.jsdelivr.net/npm/vue@2.5.21/dist/vue.min.js"></script>
    <script>
        var vm = new Vue({
            // 绑定dom
            el: "#app",
            // model: 数据
            data: {
                items: [
                    {message: "java"},
                    {message: "python"}
                ]
            }
        });

    </script>
</body>
</html>